﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestEasyCMS.Service.Messages;

namespace BestEasyCMS.Service.Interfaces
{
    public interface IService<T, in TKey> where T : class
    {
        /// <summary>
        /// 获取单个实体对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        FindResponse<T> FindBy(TKey id);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        ResponseBase Update(T view);
    }
}
